<?php


namespace app\admin\controller;


use think\App;
use think\Controller;
use think\facade\Session;

class CheckLoginBase extends Controller
{
    /*构造函数 进入这个页面必须进行登录操作*/
    public function __construct(App $app = null)
    {
        if(!Session::has("admin")){
            $this->redirect("/admin/login");
        }
        parent::__construct($app);
    }
}